package com.bocai.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
  * @ClassName: UploadFileService 
  * @Description: 上传文件Service 
  * @author zyn161616@163.com 
  * @date 2017年9月11日 下午4:03:28
 */
public interface UploadFileService {

	/**
	* @Title: uploadImageToServer 
	* @Description: 上传文件到服务器
	* @param @param imageFile
	* @param @param request
	* @param @return    
	* @return Map<String,Object>     
	* @throws
	 */
	Map<String,Object> uploadImageToServer(MultipartFile imageFile, HttpServletRequest request);

	/**
	* @Title: webImgCrop 
	* @Description: 上传文件
	* @param @param imgUrl
	* @param @param imgW
	* @param @param imgH
	* @param @param imgX1
	* @param @param imgY1
	* @param @param cropW
	* @param @param cropH
	* @param @param request
	* @param @return    
	* @return Map<String,Object>     
	* @throws
	 */
	Map<String, Object> webImgCrop(String imgUrl, double imgW, double imgH, Integer imgX1, Integer imgY1, Integer cropW, Integer cropH, HttpServletRequest request);

	/**
	 * 导出数据到Excel表格
	 * @param request
	 * @param response
	 * @param params
	 */
	void exportDataToExcelByParams(HttpServletRequest request, HttpServletResponse response, Map<String, Object> params);

	/**
	 * 导入Excel表格数据到DB
	 * @param file
	 * @return
	 */
	String changeImportExcelData2DB(MultipartFile file);



}
